package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.OperationDao;
import com.itheima.pojo.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Ossian
 * @version v1.0
 * @date 2019/7/5 21:31
 * @description 操作日志业务
 **/
@Service(interfaceClass = OperationService.class)
@Transactional
public class OperationServiceImpl implements OperationService {
    @Autowired
    private OperationDao operationDao;

    /**
     * 添加操作日志
     * @param operation
     */
    @Override
    public void addOperation(Operation operation) {
        operationDao.addOperation(operation);
    }
}